.payment-success {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 20px;
}

/* 加载状态 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #007aff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #666;
  font-size: 16px;
}

/* 错误状态 */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.retry-button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* 顶部导航 */
.header {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 375px;
  margin: 0 auto;
}

.back-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 4px;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-icon {
  font-size: 18px;
  color: #666;
  cursor: pointer;
}

/* 支付状态 */
.payment-status {
  background-color: white;
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.status-icon {
  width: 60px;
  height: 60px;
  background-color: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 32px;
  color: white;
}

.status-text {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* 条形码区域 */
.barcode-section {
  background-color: white;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.barcode {
  font-size: 80px;
  margin-bottom: 8px;
}

.barcode-number {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-family: monospace;
}

.barcode-tip {
  font-size: 14px;
  color: #666;
}

/* 通用样式 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding: 0 16px;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
}

.label {
  color: #666;
  font-size: 14px;
  min-width: 80px;
  margin-right: 12px;
}

.value {
  color: #333;
  font-size: 14px;
  flex: 1;
}

/* 缴费信息 */
.payment-info {
  background-color: white;
  margin-bottom: 12px;
}

.payment-info .section-title {
  padding: 16px 16px 0;
  margin-bottom: 0;
}

/* 费用明细 */
.cost-details {
  background-color: white;
  margin-bottom: 12px;
}

.cost-details .section-title {
  padding: 16px 16px 0;
  margin-bottom: 0;
}

.cost-category {
  margin-bottom: 16px;
}

.category-header {
  padding: 12px 16px;
  font-size: 14px;
  color: white;
  margin-bottom: 8px;
}

.category-header.medicine {
  background-color: #007aff;
}

.category-header.examination {
  background-color: #ff9500;
}

.prescription-info {
  padding: 0 16px 8px;
  font-size: 14px;
  color: #666;
}

.cost-items {
  padding: 0 16px;
}

.cost-item {
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.cost-item:last-child {
  border-bottom: none;
}

.total-amount {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}

/* 订单信息 */
.order-info {
  background-color: white;
}

.order-info .section-title {
  padding: 16px 16px 0;
  margin-bottom: 0;
}

.copy-button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}

.copy-button:hover {
  background-color: #0056cc;
}
